package com.theyeasy.dvmini.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
 

@Controller
@RequestMapping("/sale")
public class SalesController extends BaseController{
    
    @RequestMapping("/saleIndex")
    public ModelAndView salesIndex(){
        ModelAndView mv = new ModelAndView("/pc/sale/sale");
        return mv;
    }
  
    
    //销售人员列表
    @RequestMapping(value = "/getSalesList")
    @ResponseBody
    public Object salesList(String keyword,Integer projectid) {
        
        return null;
    }
    
    //添加销售
    @RequestMapping(value = "/addsales")
    @ResponseBody
    public Object addsales(String name,String phone,Integer projectid) {
        
        return null;
    }
    
    //修改销售
    @RequestMapping(value = "/updatesales")
    @ResponseBody
    public Object updatesales(Integer id,String name,String phone,Integer projectid) {
        
        return null;
    }
    
    //删除销售
    @RequestMapping(value = "/deletesales")
    @ResponseBody
    public Object deletesales(Integer id) {
        
        return null;
    }
    
}